package com.ruoyi.common.exception.base.domian;

/**
 * @Classname EntityNotFoundOrDisableException
 * @Author: sunluquan
 * @Date: 2022/7/6 17:12
 * @Description TODO
 * 实体对象未找到或者禁用异常
 */
public class EntityNotFoundOrDisableException extends EntityNotFoundException{

    public EntityNotFoundOrDisableException(String module, String code, Object[] args, String defaultMessage) {
        super(module, code, args, defaultMessage);
    }

    public EntityNotFoundOrDisableException(String module, String code, Object[] args) {
        this(module, code, args ,null);
    }

    public EntityNotFoundOrDisableException(String module, String defaultMessage) {
        this(module , null ,null , defaultMessage);
    }

    public EntityNotFoundOrDisableException(String code, Object[] args) {
        this(null,code, args,null);
    }

    public EntityNotFoundOrDisableException(String defaultMessage) {
        this(null,null,null,defaultMessage);
    }

    public EntityNotFoundOrDisableException() {
        this("数据未找到或不可用！");
    }
}
